
export class point{
    x:number=0
    y:=0
    constructor(x,y){
        this.x=x
        this.y=y
    }
    get_distance(other:point):number{
        return Math.sqrt(Math.pow((this.x-other.x),2)+Math.pow((this.y-other.y),2))

    }
}
let point1=new point(0,0)                                                    
    console.log(point1);
let point2=new point(1,1)
console.log(point2);
let distance=point2.get_distance(point1)
console.log(distance)






